home *** CD-ROM | disk | FTP | other *** search
/ Educational Software Cooperative 4 / Educational Software Cooperative 4.iso / xysee4a / 0sintest.mac < prev    next >
Text File  |  1994-09-04  |  4KB  |  146 lines

  1. 0 Null XYSee 4.0 Demonstration MACRO... 0SinTest.MAC  8/93.
  2. 0 Null (C) 1993, Insight Advantage. All Rights Reserved.
  3. 0 BEEP
  4. 0 MESSAGE
  5. Example of using XYSee for :
  6. 3 MESSAGE
  7.                   ** TESTING **
  8. 1 MESSAGE {Blank out line}
  9.  
  10. 1 MESSAGE
  11.                   ** TESTING **
  12. 1 MESSAGE {Blank out line}
  13.  
  14. 1 MESSAGE
  15. Your requirements may be more sophisticated,
  16. 4 MESSAGE
  17. but don't worry...
  18. 3 MESSAGE
  19. XYSee MACROs are SIMPLE to prepare !
  20. 4 ACCEPT  Select the FAMILY Menu.
  21. 0 DOWN
  22. 1 DOWN
  23. 1 ACCEPT  Select the TRIGONOMETRIC Menu.
  24. 1 ACCEPT  Select the SINE module.
  25. 0 MESSAGE
  26. First let's set some initial conditions.
  27. 4 DOWN
  28. 0 MESSAGE
  29. We'll set the model to Y=Asin(BX+C).
  30. 4 ACCEPT  Select the Select Model option.
  31. 1 UP Selected model is Y=Asin(BX+C)
  32. 1 UP
  33. 1 ACCEPT
  34. 1 ACCEPT Select the VARIABLE UPDATE Menu.
  35. 0 MESSAGE
  36. And initialize our variables.
  37. 4 DOWN   Enter an initial set of values.
  38. 1 ACCEPT  "A"
  39. 1 8.0    Enter values for the variables...
  40. 1 UP
  41. 1 ACCEPT  "C"
  42. 1 0.0
  43. 0 MESSAGE  {Blank out line}
  44.  
  45. 1 CANCEL  To plot the initial values.
  46. 1 DOWN
  47. 1 DOWN
  48. 1 RIGHT  Select the OVERLAY Menu.
  49. 0 MESSAGE
  50. Let's SAVE the initial conditions.
  51. 4 ACCEPT  SAVE the initial plot.
  52. 0 MESSAGE  {Blank out line}
  53.  
  54. 1 RIGHT
  55. 0 BEEP Time to start...
  56. 1 ACCEPT  Select the CURSOR option.
  57. 0 MESSAGE
  58.            == Ready? ... Let's Begin ==
  59. 5 RIGHT * 9 Move to the Maximum Amplitude point.
  60. 0 UP    * 31
  61. 0 MESSAGE MAXIMUM AMPLITUDE
  62. What is this point on the wave called?
  63. 9 MESSAGE
  64. The magnitude from this point...
  65. 5 DOWN  * 66
  66. 0 RIGHT * 13
  67. 0 MESSAGE PEAK-TO-PEAK AMPLITUDE
  68. To the opposite point is called?
  69. 9 CANCEL  Exit the CURSOR option.
  70. 0 MESSAGE  {Blank out line}
  71.  
  72. 1 ACCEPT  Select the VARIABLE UPDATE Menu.
  73. 1 UP
  74. 1 ACCEPT  "C"
  75. 1 -1.5
  76. 1 CANCEL  Replot with the new values.
  77. 1 RIGHT
  78. 1 ACCEPT  Select the CURSOR option.
  79. 0 LEFT  * 7
  80. 0 UP    * 66
  81. 0 MESSAGE
  82. What is the distance from this point on the wave...
  83. 5 LEFT  * 26 Position the cursor to the second point/wave.
  84. 0 MESSAGE WAVELENGTH
  85. To this point on the wave called?
  86. 9 CANCEL  Exit the CURSOR option.
  87. 0 MESSAGE  {Blank out line}
  88.  
  89. 0 DOWN
  90. 1 RIGHT
  91. 1 ACCEPT  OVERLAY our previous plot.
  92. 1 RIGHT
  93. 1 ACCEPT  Select the CURSOR option.
  94. 0 MESSAGE
  95. What is the difference from this point...
  96. 5 LEFT  * 7
  97. 0 MESSAGE PHASE SHIFT
  98. To the same point on a different wave called?
  99. 9 MESSAGE  {Blank out line}
  100.  
  101. 0 CANCEL  Exit the CURSOR option.
  102. 1 ACCEPT  Select the VARIABLE UPDATE Menu.
  103. 1 DOWN
  104. 1 ACCEPT  "A"
  105. 1  5.0    Amplitude value first.
  106. 1 UP
  107. 1 ACCEPT  "C"
  108. 1  0.0    Followed by the Phase Shift. (none here)
  109. 1 CANCEL  Replot with the new values.
  110. 1 DOWN
  111. 1 RIGHT
  112. 1 ACCEPT  OVERLAY the initial plot again.
  113. 1 RIGHT
  114. 1 ACCEPT  Select the CURSOR option.
  115. 0 MESSAGE
  116. What is the variation from this point...
  117. 5 DOWN  * 12
  118. 0 MESSAGE AMPLITUDE DIFFERENCE
  119. To the matching point called?
  120. 9 MESSAGE  {Blank out line}
  121.  
  122. 1 CANCEL  Exit the CURSOR option.
  123. 0 CANCEL  Exit the SINE module.
  124. 1 CANCEL  Exit the TRIGONOMETRIC Menu.
  125. 1 CANCEL  To the MAIN Menu.
  126. 0 MESSAGE
  127. It's time to check your answers.
  128. 4 MESSAGE
  129. The first question was an easy warmup,
  130. 4 MESSAGE
  131. It is the MAXIMUM AMPLITUDE point?
  132. 6 MESSAGE
  133. The second one was a little harder...
  134. 6 MESSAGE
  135. It's PEAK to PEAK.
  136. 6 MESSAGE
  137. I hope you remembered the...WAVE LENGTH.
  138. 6 MESSAGE
  139. Number four was harder...PHASE SHIFT.
  140. 6 MESSAGE
  141. Last, the variation here is in...AMPLITUDE.
  142. 6 MESSAGE
  143. We've covered a lot, I hope you did well !
  144. 4 BEEP    Notify the Instructor.
  145. 0 STOP    Terminate this testing MACRO.
  146.